<template>
  <page-frame>
    <div class="roomDynamic">
      <div class="toptitle">
        <div class="left padding-bottom-6">房间动态</div>
      </div>
      <div class="borderT"></div>
      <div style="overflow: hidden;">
        <el-col :span="4">
          <reserveStructure @changeFloor="changeFloor"/>
        </el-col>
        <el-col :span="2"></el-col>
        <el-col :span="18">
          <bedDetail :flId="floorId"/>
        </el-col>
      </div>
    </div>
  </page-frame>
</template>

<script >
  import reserveStructure from '../../components/room/reserveStructure.vue';
  import bedDetail from '../../components/room/bedDetail.vue';
  export default {
    components: { reserveStructure, bedDetail },
    data () {
      return {
        floorId: null
      }
    },
    methods: {
      changeFloor(floorId){
        if(floorId) {
          this.floorId = floorId;
        }
      }
    }
  }
</script>
<style>
  .el-col-2 {
    height: 1px;
  }
</style>
